﻿package cgs.server.abtesting.messages
{
    import cgs.server.logging.*;
    import cgs.server.logging.messages.*;
    import com.adobe.serialization.json.*;

    public class ConditionVariableMessage extends Message
    {

        public function ConditionVariableMessage(param1:int, param2:int, param3:int, param4:int, param5:Boolean = false, param6:Number = -1, param7:Object = null, param8:GameServerData = null)
        {
            var _loc_9:JSONEncoder = null;
            super(param8);
            addProperty("test_id", param1);
            addProperty("cond_id", param2);
            addProperty("var_id", param3);
            addProperty("start", param5 ? (1) : (0));
            addProperty("result_id", param4);
            if (param6 >= 0)
            {
                addProperty("time", param6);
            }
            if (param7 != null)
            {
                _loc_9 = new JSONEncoder(param7);
                addProperty("detail", _loc_9.getString());
            }
            return;
        }// end function

    }
}
